@echo off

SET projectName=%1
SET installDir=%2
SET i18nOutDir=%3

if "%installDir%" == "" goto argError
if "%projectName%" == "" goto argError
if "%i18nOutDir%" == "" SET i18nOutDir=%~d0%~p0out

echo Copying from %i18nOutDir%\%projectName% to %installDir%
xcopy %i18nOutDir%\%projectName% %installDir% /Y /I /E /Q
goto end

:argError
echo Invalid arguments.
echo USAGE:
echo   %~n0 projectName installDir [i18nOutDir]
:end